package com.danco.training.zaneuskaya.repository;

import java.io.Serializable;
import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.HibernateException;

/**
 * @author Zaneuskaya Aliaksandra
 *
 */
public interface GenericDao<T, PK extends Serializable> {

	void create(T object) throws HibernateException;

	T read(Integer PK) throws HibernateException;

	List<T> readAll() throws HibernateException;

	void update(T object) throws HibernateException;

	void delete(T object) throws HibernateException;

	Criteria modifyCriteria(Criteria criteria, String column)
			throws HibernateException;

}
